<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="referrer" content="never">
    <title>@yield('title') - 后台管理系统</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta name="_token" content="{{ csrf_token() }}"/>
    <!-- Font Awesome -->
    <link rel="stylesheet" href="/static/assets/css/material-dashboard.css?v=1.2.2">
    <link href="/static/css/common.css" rel="stylesheet">

    {{--loding--}}
    {{--<link href="{{static_url('yuncms/dist/css/load/load.css')}}" rel="stylesheet">--}}
    <link rel="stylesheet" type="text/css" href="/static/css/webstyle.css">

    <link rel="stylesheet" href="/static/css/backend/base.css?v=1">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script>var require = { urlArgs: 'yzTime={{time()}}' };</script>

    <script type="text/javascript">
        const protocolStr = document.location.protocol;
        switch (protocolStr) {
            case 'https:':
                // 指定https访问类型，具体见百度地图API加载方式：http://www.jiazhengblog.com/blog/2011/06/28/284/
                window.HOST_TYPE = '2'
                break
            default:
                break
        }

      if(navigator.appName == 'Microsoft Internet Explorer'){
        if(navigator.userAgent.indexOf("MSIE 5.0")>0 ||
          navigator.userAgent.indexOf("MSIE 6.0")>0 ||
          navigator.userAgent.indexOf("MSIE 7.0")>0)
        {
          alert('您使用的 IE 浏览器版本过低, 推荐使用 Chrome 浏览器或 IE8 及以上版本浏览器.');
        }
      }

      //todo
      window.sysinfo = {
          'is_new': '1',
          'uniacid': '25',
          'acid': '25',
          'openid': '',
          'uid': '1',
          'siteroot': 'https://dev15.yunzmall.com/',
          'static_url': '/static/',
          'siteurl': 'https://dev15.yunzmall.com/admin/shop?route=plugin.pc-terminal.admin.set.basic',
          'attachurl': 'http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com',
          'attachurl_local': 'https://dev15.yunzmall.com/static/upload/',
          'attachurl_remote': 'http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com',

          'cookie' : {'pre': ''},
          'get_address' : '/admin/shop?route=address.get-address'

      };

    </script>

    {{--<script src="//vuejs.org/js/vue.min.js"></script>--}}
    <script src="/static/yuncms/vue/js/vue.min.js"></script>
    {{--<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>--}}
    <script src="/static/yuncms/vue/js/vue.js"></script>
    <script src="/static/js/vue-count-to.min.js" type="text/javascript"></script>
    {{--<script s/static/n.bootcss.com/vue-resource/1.5.0/vue-resource.js"></script>--}}
    <script src="/static/yuncms/vue/js/vue-resource.js"></script>

    {{--<link href="https://cdn.bootcss.com/element-ui/2.3.1/theme-chalk/index.css" rel="stylesheet">--}}
    {{--<link href="{{ static_url('yuncms/element-ui/2.10.1/css/element-ui_2.10.1_theme-chalk_index.css') }}" rel="stylesheet">--}}
    <link href="/static/yuncms/element-ui/2.10.1/css/index.css" rel="stylesheet">
    {{--<script src="https://cdn.bootcss.com/element-ui/2.4.0/index.js"></script>--}}
    <script src="/static/yuncms/element-ui/2.10.1/js/element-ui_2.10.1_index.js"></script>
    <!-- Promise Library for SweetAlert2 working on IE -->
    <script src="/static/assets/js/es6-promise-auto.min.js"></script>
    <!-- Material Dashboard javascript methods -->
{{--    <script src="{{static_url('assets/js/material-dashboard.js')}}"></script>--}}

    {{--<script src="{{static_url('js/echarts.js')}}" type="text/javascript"></script>--}}

    <!-- import iView -->
    {{--<script src="https://cdn.bootcss.com/axios/0.18.0/axios.min.js"></script>--}}
    <script src="/static/yuncms/axios/js/axios_0.18.0_axios.min.js"></script>
    {{--<script src="https://cdn.bootcss.com/iview/2.14.0/iview.min.js"></script>--}}
    <script src="/static/yuncms/iview/js/iview_2.14.0_iview.min.js"></script>
</head>

<body>
<div id="loading">
    <div id="loading-center">
        <div id="loading-center-absolute">
            <div class="object" id="object_four"></div>
            <div class="object" id="object_three"></div>
            <div class="object" id="object_two"></div>
            <div class="object" id="object_one"></div>
        </div>
    </div>
</div>
<div class="wrapper">

    @include('backend.layouts.design.header')
    @include('backend.layouts.design.left')
    <div class="main-content">
        @yield('content')
    </div>
    @include('backend.layouts.design.right')
</div>

<script>
    var dialogBox = document.getElementById("pwd_remind_pop");
    var popLayer = document.getElementById("pwd_remind_popLayer");
    {{--@if($_GET['pwd_remind'] == 2)
    popBox();

    @endif--}}
    
    /*点击弹出按钮*/
    function popBox() {
        dialogBox.style.display = "block";
        popLayer.style.display = "block";
    }
    /*点击关闭按钮*/
    function closeBox() {
        dialogBox.style.display = "none";
        popLayer.style.display = "none";
    }
    // 修改密码
    function editPas() {
        openPwd()
        closeBox();
    }
    window.popBox = popBox;
    window.closeBox = closeBox;
</script>
</body>
</html>
